package tgc.edu.examxy.service;

import java.util.List;
import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tgc.edu.examxy.custom.CommonService;
import tgc.edu.examxy.entity.TbClass;
import tgc.edu.examxy.entity.TeachingProgramme;
import tgc.edu.examxy.repository.TeachingProgrammeRepository;

@Service
public class TeachingProgrammeService extends CommonService<TeachingProgramme, UUID> {
	@Autowired
	private TeachingProgrammeRepository tpDAO;

	public List<TeachingProgramme> findByTbClass(TbClass tbClass) {
		return tpDAO.findByTbClass(tbClass);
	}
}
